package org.example.coknown.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.example.coknown.entity.TraceabilityInformation;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface TraceabilityInformationService  {
    /**
     * 根据id查询溯源信息
     */
    List<TraceabilityInformation> selectById(Integer id);

    /**
     * 分页查询全部溯源信息
     */
    IPage<TraceabilityInformation> listUsers(Integer page, Integer pageSize);

    /**
     * 添加溯源信息
     */
    int addTraceabilityInformation(TraceabilityInformation traceabilityInformation);
    /**
     * 根据betch查询溯源信息
     */

    List<TraceabilityInformation> selectByBetch(Integer betch);
}
